import { services } from '@/config'

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  labelWidth: 130,
  searchLabelWidth: 90,
  searchShow: false,
  viewBtn: true,
  column: [
    {
      label: '姓名',
      prop: 'userName',
      formslot: true,
      search: true,
      searchslot: true,
      span: 12,
      display: true
    },
    {
      type: 'select',
      label: '学历',
      prop: 'education',
      search: true,
      width: 200,
      span: 12,
      props: { label: 'label', value: 'value' },
      dicUrl: `${services.adminService}dict/type/edu_background`,
      dicMethod: 'get'
    },
    {
      type: 'date',
      label: '入学日期',
      prop: 'startDate',
      span: 12,
      search: true,
      display: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      width: 120
    },
    {
      type: 'date',
      label: '毕业日期',
      prop: 'endDate',
      search: true,
      span: 12,
      display: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      width: 120
    },
    {
      type: 'select',
      label: '专业类别',
      prop: 'professionalcategory',
      span: 12,
      search: true,
      props: { label: 'label', value: 'value' },
      dicUrl: `${services.adminService}dict/type/profes_category`,
      dicMethod: 'get',
      width: 120
    },
    {
      type: 'input',
      label: '专业名称',
      prop: 'professional',
      search: true,
      span: 12,
      width: 120
    },
    {
      type: 'input',
      label: '学校名称',
      search: true,
      prop: 'schoolname',
      span: 12,
      width: 200
    },
    {
      type: 'select',
      label: '学习形式',
      prop: 'learningmodality',
      span: 12,
      props: { label: 'label', value: 'value' },
      dicUrl: `${services.adminService}dict/type/learning_modality`,
      dicMethod: 'get',
      width: 150
    },
    {
      type: 'select',
      label: '教育类别',
      prop: 'educationSector',
      span: 12,
      props: { label: 'label', value: 'value' },
      dicUrl: `${services.adminService}dict/type/edu_sector`,
      dicMethod: 'get',
      width: 150
    },
    {
      type: 'input',
      label: '学位',
      prop: 'academicdegree',
      search: true,
      span: 12,
      width: 100
    },
    {
      type: 'date',
      label: '学位授予日期',
      prop: 'academicdegreeDate',
      span: 12,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      width: 200
    },
    {
      type: 'input',
      label: '学位授予单位',
      prop: 'academicdegreeUnit',
      span: 12
    },
    {
      type: 'input',
      label: '学历证书号',
      prop: 'certificateNo',
      span: 12,
      width: 200
    },
    {
      type: 'input',
      label: '学位证书号 ',
      prop: 'diplomaNo',
      span: 12,
      width: 200
    }
  ]
}
